<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body>
        <div id="app">
            <alert-box>link</alert-box>
            <alert-box>jack</alert-box>
            <alert-box>tom</alert-box>
            <alert-box></alert-box>
        </div>
        <script src="./lib/vue.js"></script>
        <script>
            Vue.component('alert-box', {
                template: `
                    <div>你好，<slot>andy</slot></div>
                `
            });
            var app = new Vue({
                el: '#app',
                data: {}
            });
        </script>
    </body>
</html>
